#include "editor_win.h"
#include"test.h"

#include <QApplication>
#include<QDebug>
#include"opengl/node_opengl_test.h"



//TODO add opengl function
//#include<QtOpenGL/QGL>
//#include<QtVulkanSupport/QtVulkanSupport>

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    QDir::setCurrent(app.applicationDirPath());  // 设置相对路径：是必需的、但能否改动？

    EditorWin *w = new EditorWin();
    w->show();

//    NodeOpenGLTest gl;
//    gl.setWindowTitle("gl_test");
//    //gl.resize(200,200);
//    gl.show();



//    QtFunctionWidget w1;
//    CoreFunctionWidget w2;
//    //w1.setWindowTitle(QObject::tr("QtFunction"));
//    w2.setWindowTitle(QObject::tr("CoreFunction"));
//    //w1.show();
//    w2.show();


    //qApp->processEvents();
    //app.exec();


    return app.exec();
}
